#include<parseJson.h>
#include<gtest/gtest.h>
class ParseJsonTest : public testing::Test {
protected:
    // 初始化，在每个TEST_F中都会被调用
    void SetUp() override {

    }
    // 销毁，在每个TEST_F结束时都会调用
    void TearDown() override {

    }
};

TEST_F(ParseJsonTest, ParseJson) {
    std::string ans = R"({"answer":{"everything":42},"happy":true,"list":[1,0,2],"name":"Niels","nothing":null,"object":{"currency":"USD","value":42.99},"pi":3.141})";
    std::string res = parseJson();
    EXPECT_EQ(res, ans);
}